﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Principal;

namespace Sinacor.Infra.UI.Authentication
{
    /// Data:26/07/2008 18:55
    /// Autor:DMilanez.7Comm
    /// Obs:
    public class SinacorPrincipal : IPrincipal
    {
        private SinacorIdentity _sinacorIdentity;
        public SinacorIdentity SinacorIdentity
        {
            get
            {
                return _sinacorIdentity;
            }
            set
            {
                _sinacorIdentity = value;
            }        
        }

        #region IPrincipal Members

        public IIdentity Identity
        {
            get 
            {
                return _sinacorIdentity;
            }
        }

        public bool IsInRole(string role)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
